package com.cyou.mrd.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cyou.mrd.dao.ITaskInfoDao;
import com.cyou.mrd.pojo.TaskInfo;
import com.cyou.mrd.service.ITaskInfoService;

@Service("taskInfoService")
public class TaskInfoServiceImpl implements ITaskInfoService {

	@Resource
	private ITaskInfoDao taskInfoDao;
	
	@Override
	public int addTaskInfo(TaskInfo taskInfo) {
		int result = this.taskInfoDao.insert(taskInfo);
		return result;
	}

	@Override
	public TaskInfo getTaskInfo(int taskId) {
		return this.taskInfoDao.selectByPrimaryKey(taskId);
	}

}
